package com.demo.drools.rules.fact;

import lombok.Data;

/**
 * @author ZhouSicheng
 * @description
 * @date 2019/3/15 11:51
 */
@Data
public class CouponFact implements Fact {

    /**
     * 原始金额
     */
    private Long originCent;

    /**
     * 优惠之后的金额
     */
    private Long actualCent;

    /**
     * 优惠额度
     */
    private Long diffCent = 0L;

    public void setOriginCent(Long originCent) {
        this.originCent = originCent;
        this.actualCent = originCent;
    }
}
